#!/usr/bin/env bash

help(){
    cat<<__EOF__
    usage: m battery [ status | help ]

    Examples:
      m battery status    # get the battery status
__EOF__
}

battery_status(){
    pmset -g batt
}

case $1 in
    help)
        help
        ;;
    status)
        battery_status
        ;;
    *)
        help
        ;;
esac

# vim: ts=4 sw=4 softtabstop=4 expandtab
